/**
 * AirportManager.java
 * Dec 29, 2009
 */
package com.dlplay.flightinfo.core;

import java.util.List;

import com.dlplay.flightinfo.data.Airport;
import com.dlplay.flightinfo.data.AirportTerminalCode;

/**
 * @author zhao yu
 * define the Airport Manager function interface
 */
public interface AirportManager {

	/**
	 * @param terminal
	 * @return if no found, return null
	 * Description: acquire the airport by airport terminal code
	 */
	public abstract Airport getAirport(AirportTerminalCode terminal);	
	
	/**
	 * @param airport
	 * Description: update the airport information
	 *  if airport not exist, add new one
	 *  if airport exist, update it
	 */
	public abstract void updateAirport(Airport airport); 		
	
	/**
	 * @return not null
	 * Description: get the available flight number list
	 */
	public abstract List<Airport> getAirportList();
}
